package com.recruit.g1.resume.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.recruit.g1.pojo.resume.entity.Resume;
import com.recruit.g1.pojo.resume.vo.ResumeDetail;
import com.recruit.g1.pojo.resume.vo.ResumeInfoVO;
import com.recruit.g1.pojo.resume.vo.ResumeListVO;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ResumeMapper  extends BaseMapper<Resume> {

//    @Insert("INSERT INTO resume (user_id, user_contact, name, qualification, experience, arrive_time, info_frame) VALUES (#{UserId},#{UserContact},#{name},#{qualification},#{experience},#{arriveTime},#{infoFrame})")
//    int insert(Resume resume);

//    @Select("select * from resume where user_id=#{id}")
    Resume selectById(Long userId);

    @Delete("delete from resume where id=#{id}")
    int deleteById(Long id);

    List<ResumeInfoVO> selectByUserId(Long userId);

    List<ResumeListVO> selectResumeList();

    ResumeDetail selectResumeById(Integer id);

//    @Select("select * from resume where user_id = #{id}")
//    List<Resume> selectByUserId(Long id);
}
